/* 
基础部分api的ajax的调用
*/

import { Axios } from './https.js'; // 引入ajax 

let basicurl = process.env.SERVICEURL;


//查询项目  
export const GetBuildProjectListByAgent = params => {
    return Axios(params, basicurl + `ServiceDemand/GetBuildProjectListByAgent`, "get");
}


//专家列表查询
export const ExpertInfoQuery = params => {
    return Axios(params, basicurl + `ExpertInfo/Query`, "get");
}


//专家列表查询（查所有）
export const ExpertInfoQueryList = params => {
    return Axios(params, basicurl + `ExpertInfo/QueryList`, "get");
}


//事故预防专家报告查询
export const GetExpertReportEnquiry = params => {
    return Axios(params, basicurl + `ServiceDemand/GetExpertReportEnquiry`, "get");
}


//事故预防整改情况
export const GetSectification = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetSectification`, "get");
}


//事故预防服务情况统计   （进行中/已开展/未开展事故预防服务）
export const GetDevelopment = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetDevelopment`, "get");
}


//服务机构列表查询  
export const GetServiceDemandSaiList = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandSaiList`, "get");
}

//获取专家专业
export const ExpertInfoGetExpertMajor = params => {
    return Axios(params, basicurl + `ExpertInfo/GetExpertMajor`, "get");
}


//专家新增or编辑
export const ExpertInfoAddOrUpdate = params => {
    return Axios(params, basicurl + `ExpertInfo/AddOrUpdate`, "post");
}


//专家删除
export const ExpertInfoDelete = params => {
    return Axios(params, basicurl + `ExpertInfo/Delete`, "post");
}


//服务需求类型查询
export const ServiceDemandGetServiceTypeList = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceTypeList`, "get");
}

//发布服务需求（新增服务需求） 
export const ServiceDemandAddNewServiceDemand = params => {
    return Axios(params, basicurl + `ServiceDemand/AddNewServiceDemand`, "post");
}


//编辑服务需求
export const EditServiceDemand = params => {
    return Axios(params, basicurl + `ServiceDemand/EditServiceDemand`, "post");
}

//查看服务详情 
export const GetServiceDemandDetail = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandDetail`, "get");
}



//查询【服务需求】（经纪公司）
export const GetServiceDemandListByAgent = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandListByAgent`, "get");
}

//查询【服务需求】（企业）
export const GetServiceDemandListByEnt = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandListByEnt`, "get");
}

//查询【服务需求】详情（企业）
export const GetServiceDemandDetailByEnt = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandDetailByEnt`, "get");
}



//服务机构认领情况列表查询（中介）
export const GetServiceClaimListByAgent = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceClaimListByAgent`, "get");
}

//查询【服务需求】（服务机构）
export const GetServiceDemandListBySa = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandListBySa`, "get");
}



//服务需求列表详情查询（服务机构） 主要是服务机构自身的上传内容，专家信息之类的东西。   
export const GetServiceDemandDetailBySa = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandDetailBySa`, "get");
}


//修改需求状态  设置某个服务需求的状态信息 主要是中介的操作 1、flag = 20 发布 2、flag = 21 撤单 3、flag = 22 再次发布 4、flag = 23 终止服务
export const SetServiceDemandState = params => {
    return Axios(params, basicurl + `ServiceDemand/SetServiceDemandState`, "post");
}


//服务机构设置服务需求的状态信息
export const SetSaiServiceDemandState = params => {
    return Axios(params, basicurl + `ServiceDemand/SetSaiServiceDemandState`, "post");
}


//企业设定服务需求的状态信息
export const SetEntServiceDemandState = params => {
    return Axios(params, basicurl + `ServiceDemand/SetEntServiceDemandState`, "post");
}


//设置服务需求的专家信息
export const SetServiceDemandExpert = params => {
    return Axios(params, basicurl + `ServiceDemand/SetServiceDemandExpert`, "post");
}


//下载技术报告
export const UpdateDownloadReport = params => {
    return Axios(params, basicurl + `ServiceDemand/UpdateDownloadReport`, "get");
}


//获取隐患列表 政府查看与服务机构查看企业对应隐患列表
export const GetSdDanList = params => {
    return Axios(params, basicurl + `ServiceDemand/GetSdDanList`, "get");
}


//隐患整改
export const UpdateSdDan = params => {
    return Axios(params, basicurl + `ServiceDemand/UpdateSdDan`, "post");
}


//新增or编辑隐患
export const HiddenDangerSetEntServiceDemandState = params => {
    return Axios(params, basicurl + `HiddenDanger/SetEntServiceDemandState`, "post");
}

//删除隐患 
export const DelHiddenDanger = params => {
    return Axios(params, basicurl + `HiddenDanger/DelHiddenDanger`, "post");
}


//问题反馈--提问列表查询
export const QuestionAskQuery = params => {
    return Axios(params, basicurl + `QuestionAsk/Query`, "post");
}


//问题反馈--提问
export const InsertStatus = params => {
    return Axios(params, basicurl + `QuestionAsk/InsertStatus`, "post");
}


//问题反馈--回复
export const InsertReply = params => {
    return Axios(params, basicurl + `QuestionAsk/InsertReply`, "post");
}

//处罚管理查询
export const EntPunishInfoQueryEnt = params => {
    return Axios(params, basicurl + `EntPunishInfo/QueryEnt`, "post");
}


//企业评分
export const EvaluationInsertStatus = params => {
    return Axios(params, basicurl + `Evaluation/InsertStatus`, "post");
}


//企业查询评分
export const EvaluationQueryEnt = params => {
    return Axios(params, basicurl + `Evaluation/QueryEnt`, "post");
}


//经纪公司、保险公司、服务机构以及政府查平均分
export const EvaluationQueryDetail = params => {
    return Axios(params, basicurl + `Evaluation/QueryDetail`, "post");
}

//建委政府首页事故预防统计  start

// 事故预防总数统计
export const GetBuildAccidentPrevention = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetBuildAccidentPrevention`, "get");
}

//事故预防总金额统计
export const GetBuildAccidentPreventioncost = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetBuildAccidentPreventioncost`, "get");
}

//事故预防隐患排查月统计
export const GetBuildMonthInvestigation = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetBuildMonthInvestigation`, "get");
}

//事故预防培训人数月统计
export const GetBuildMonthTrainNumberAsync = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetBuildMonthTrainNumberAsync`, "get");
}


//建委政府首页事故预防统计  end

//应急政府端考核管理的页面  start
//  考核评分新增修改
export const SaveResult = params => {
    return Axios(params, basicurl + `Assessment/SaveResult`, "post");
}

//政府端考核管理的页面  end
//事故预防总额统计
export const GetAccidentPrevention = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetAccidentPrevention`, "get");
}

//事故预防费用统计
export const GetAccidentPreventioncost = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetAccidentPreventioncost`, "get");
}

//事故预防隐患排查月统计  
export const GetMonthInvestigation = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetMonthInvestigation`, "get");
}


//事故预防隐患排查行业统计  
export const GetIndustryInvestigation = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetIndustryInvestigation`, "get");
}


//事故预防培训人数月统计
export const GetMonthTrainNumber = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetMonthTrainNumber`, "get");
}

//事故预防培训行业人数统计
export const GetIndustryTrainNumber = params => {
    return Axios(params, basicurl + `ServiceStatistics/GetIndustryTrainNumber`, "get");
}


//事故预防政府端统计页面--表格
export const GetServiceDemandListByGovernment = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandListByGovernment`, "get");
}

//事故预防政府端统计页面--汇总
export const GetServiceDemandStatisticsByGovernment = params => {
    return Axios(params, basicurl + `ServiceDemand/GetServiceDemandStatisticsByGovernment`, "get");
}


//处罚记录统计
export const EntPunishInfoQueryEntSta = params => {
    return Axios(params, basicurl + `EntPunishInfo/QueryEnt`, "post");
}



//应急政府首页统计  start


//考核管理 start

//模板查询
export const GetTemplate = params => {
    return Axios(params, basicurl + `Assessment/GetTemplate`, "get");
}

//考核评分新增修改
export const AssessmentSaveResult = params => {
    return Axios(params, basicurl + `Assessment/SaveResult`, "post");
}

//考核结果查询
export const GetAssessResult = params => {
    return Axios(params, basicurl + `Assessment/GetAssessResult`, "get");
}




//考核管理 end